how to break a list unequal size chunks in python

36

[lst[i:i + n] for i in range(0, len(lst), n)]

Comments

Submit
0 Comments